package com.hailian.fintech.hlbackingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-30
 */
@Data
@Accessors(chain = true)
@TableName("hl_account")
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * 操作类型
     */
    private String operation_type;
    /**
     * 合同id
     */
    private Integer contract_id;
    /**
     * 金额
     */
    private BigDecimal price;
    /**
     * 操作明细
     */
    private String operation_page;
    /**
     * 备注
     */
    private String remark;
    /**
     * 操作时间
     */
    private String operation_time;
    /**
     * 状态
     */
    private String state;

    private Integer uid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
